<?php
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
// DLMan by Shedd Technologies International		  				//
// http://www.dlman.com | info@dlman.com							//
// Copyright 2003 by STI, All rights reserved.						//
// ---------------------------------------------------------------- //
// Usage of this software is governed by the terms of GPL. 	    	//
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//

require_once("../uis.php");
require_once("../config.php");
require_once("../global.php");
require_once("../functions.php");
require_once("auth.php");

function check(){
	$license="";
	//Check License
	license($license);
	//Version Check
	version_check();
	$message="";
	return $message;
}

function version_check(){
	//generate code based on this system's version checking protocols
}

function license($license){
	//generate code based on this system's licensing protocols
	//enter data into $license
}

function menu(){
	global $menu;
	ob_start();
	?>
	<br>
	<a href="admin.php">Home</a>
	<!--FILE MENU-->
	<form name="files" method="post" action="javascript:window.location=document.files.s_files.value">
	<p><font face="Verdana" size="1">Files</font><br>
  	<select name="s_files" onChange="document.files.submit();" style="font-family: Verdana; font-size: 8pt">
  		<option value="admin.php">--</option>
  		<option value="admin.php?farea=new">New File</option>
  		<option value="admin.php?farea=manage">Manage Files</option>
  		
  	</select></p>
	</form>
	<!--end FILE MENU-->
	<!--USER MENU-->
	<form name="users" method="post" action="javascript:window.location=document.users.s_users.value">
	<p><font face="Verdana" size="1">Users</font><br>
  	<select name="s_users" onChange="document.users.submit();" style="font-family: Verdana; font-size: 8pt">
  		<option value="admin.php">--</option>
  		<option value="admin.php?uarea=finduser&pref=manage">Management</option>
		<option value="admin.php?uarea=finduser&pref=admin">Admins</option>
  	</select></p>
	</form>
	<!--end USER MENU-->
	<!--LICENSE MENU-->
	<form name="lics" method="post" action="javascript:window.location=document.lics.s_lics.value">
	<p><font face="Verdana" size="1">Licenses</font><br>
  	<select name="s_lics" onChange="document.lics.submit();" style="font-family: Verdana; font-size: 8pt">
  		<option value="admin.php">--</option>
		<option value="admin.php?sarea=license&laction=alic">Add</option>
		<option value="admin.php?sarea=license&laction=mlic">Management</option>
		<option value="admin.php?larea=">Logs</option>
	</select></p>
	</form>
	<!--end LICENSE MENU-->
	<!--SETTING MENU-->
	<form name="settings" method="post" action="javascript:window.location=document.settings.s_settings.value">
	<p><font face="Verdana" size="1">Settings</font><br>
  	<select name="s_settings" onChange="document.settings.submit();" style="font-family: Verdana; font-size: 8pt">
  		<option value="admin.php">--</option>
		<option value="admin.php?sarea=sset">Management</option>
		<option value="admin.php?sarea=templates">Templates</option>
  	</select></p>
	</form>
	<!--end SETTING MENU-->
	<a href="index.php?action=logout">Logout</a>
	<?php
	$menu=ob_get_contents();
	ob_end_clean();
}
?>